#ifndef ERRORLOG_H
#define ERRORLOG_H

#include "autoload.h"

// class is singleton
class ErrorLog {
public:
    static void init(QString fileName);
    static void append(QString message);
    static void append(QString message, bool exitApplication);
    ~ErrorLog();

protected:
    ErrorLog();

private:
    static ErrorLog* instance;
    QString fileName;
};

#endif // ERRORLOG_H
